/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-25 21:12:01  
 * Copyright (c) 2015- -版权所有     
 */
package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpIndustrialInjureApply;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;


/**
 * BpIndustrialInjureApplyDao
 *
 */
public interface BpIndustrialInjureApplyDao extends JpaRepository<BpIndustrialInjureApply, Long>, QuerydslPredicateExecutor<BpIndustrialInjureApply>  {
    public Page<BpIndustrialInjureApply> findAll(Specification<BpIndustrialInjureApply> spec, Pageable pageable);

    public BpIndustrialInjureApply save(BpIndustrialInjureApply bean);

    public void delete(BpIndustrialInjureApply bean);
    @Query("select applyUserName from BpIndustrialInjureApply where id = ?1")
    public String getApplyUserNameById(Long id); 
}
